package com.nari.system.service.impl;

import com.nari.system.api.domain.SysRstLog;
import com.nari.system.mapper.SysRstLogMapper;
import com.nari.system.service.ISysRstLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 报文日志 服务层处理
 * 
 * @author quanss
 */
@Service
public class SysRstLogServiceImpl implements ISysRstLogService
{
    @Autowired
    private SysRstLogMapper rstLogMapper;

    /**
     * 新增报文日志
     * 
     * @param rstLog 报文日志对象
     * @return 结果
     */
    @Override
    public int insertRstlog(SysRstLog rstLog)
    {
        return rstLogMapper.insertRstlog(rstLog);
    }

    /**
     * 查询系统报文日志集合
     * 
     * @param rstLog 报文日志对象
     * @return 报文日志集合
     */
    @Override
    public List<SysRstLog> selectRstLogList(SysRstLog rstLog)
    {
        return rstLogMapper.selectRstLogList(rstLog);
    }

    /**
     * 批量删除系统报文日志
     * 
     * @param ids 需要删除的报文日志ID
     * @return 结果
     */
    @Override
    public int deleteRstLogByIds(Long[] ids)
    {
        return rstLogMapper.deleteRstLogByIds(ids);
    }

    /**
     * 查询报文日志详细
     * 
     * @param id 报文ID
     * @return 报文日志对象
     */
    @Override
    public SysRstLog selectRstLogById(Long id)
    {
        return rstLogMapper.selectRstLogById(id);
    }

    /**
     * 清空报文日志
     */
    @Override
    public void cleanRstLog()
    {
        rstLogMapper.cleanRstLog();
    }
}
